.class public Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
.super Ljava/lang/Object;
.source "MediaViewHolderFactory.java"


# instance fields
.field private a:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

.field private b:Landroid/view/ViewGroup;

.field private c:I

.field private d:I

.field private e:Z

.field private f:Z

.field private g:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;

.field private h:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;

.field private i:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;

.field private j:Lcom/bumptech/glide/h;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;
    .locals 4

    .line 9
    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->c:I

    sget-object v1, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->VIDEO:Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;

    iget v1, v1, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->value:I

    const/4 v2, 0x0

    if-ne v0, v1, :cond_0

    .line 10
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/f;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->b:Landroid/view/ViewGroup;

    .line 11
    invoke-virtual {v1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v3, Les/y4;->__picker_video_item:I

    .line 12
    invoke-virtual {v1, v3, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/f;-><init>(Landroid/view/View;)V

    :goto_0
    move-object v2, v0

    goto :goto_1

    .line 13
    :cond_0
    sget-object v1, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->IMAGE:Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;

    iget v1, v1, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->value:I

    if-ne v0, v1, :cond_1

    .line 14
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/c;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->b:Landroid/view/ViewGroup;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v3, Les/y4;->__picker_item_photo:I

    .line 15
    invoke-virtual {v1, v3, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/c;-><init>(Landroid/view/View;)V

    goto :goto_0

    :cond_1
    :goto_1
    if-eqz v2, :cond_2

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->j:Lcom/bumptech/glide/h;

    .line 17
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->a(Lcom/bumptech/glide/h;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->e:Z

    .line 18
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->b(Z)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->f:Z

    .line 19
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->a(Z)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->d:I

    .line 20
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->a(I)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->g:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;

    .line 21
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->i:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;

    .line 22
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->h:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;

    .line 23
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    .line 24
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->d()V

    return-object v2

    .line 25
    :cond_2
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "viewType is invalid!"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    goto :goto_3

    :goto_2
    throw v0

    :goto_3
    goto :goto_2
.end method

.method public a(I)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 3
    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->d:I

    return-object p0
.end method

.method public a(Landroid/view/ViewGroup;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->b:Landroid/view/ViewGroup;

    return-object p0
.end method

.method public a(Lcom/bumptech/glide/h;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 8
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->j:Lcom/bumptech/glide/h;

    return-object p0
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 6
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->h:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;

    return-object p0
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 7
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->i:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;

    return-object p0
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->g:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;

    return-object p0
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    return-object p0
.end method

.method public a(Z)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 4
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->f:Z

    return-object p0
.end method

.method public b(I)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->c:I

    return-object p0
.end method

.method public b(Z)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->e:Z

    return-object p0
.end method
